<template>
  <el-container class="main">
    <el-header>
      <h3>rspack+vue3</h3>
    </el-header>
    <el-container>
      <el-aside width="200px">
        <el-menu background-color="#337ecc" text-color="#fff" router>
          <el-menu-item index="/home">首页</el-menu-item>
          <el-menu-item index="/rspack">rspack</el-menu-item>
        </el-menu>
      </el-aside>
      <el-main>
        <router-view />
      </el-main>
    </el-container>
  </el-container>
</template>
<script setup>
import { ref, onMounted } from "vue";

const NavData = ref([]);

onMounted(() => {
  NavData.value = [{}];
});
</script>
<style lang="less" scoped>
.main {
  width: 100%;
  height: 100%;
  overflow: hidden;
  text-align: left;
  .el-header {
    background: #409eff;
    display: flex;
    align-items: center;
    color: #fff;
  }
  .el-aside {
    background-color: #337ecc;
    .el-menu {
      border: none;
    }
  }
}
</style>
